package com.aaa.tars.service.impl;

import com.aaa.tars.dao.LoginLogDao;
import com.aaa.tars.entity.LoginLog;
import com.aaa.tars.service.LoginLogService;
import com.aaa.tars.vo.LoginLogCountVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @FileName: LoginLogServiceImpl
 * @Description:
 * @Author: xm
 * @CreateTime: 2025/9/22 20:13
 * @Version: 1.0.0
 */
@Service
public class LoginLogServiceImpl implements LoginLogService {

    @Resource
    private LoginLogDao loginLogDao;

    @Override
    public int add(LoginLog loginLog) {
        return loginLogDao.add(loginLog);
    }

    @Override
    public List<LoginLog> queryAllByLimit(LoginLog loginLog) {
        return loginLogDao.queryAllByLimit(loginLog);
    }

    @Override
    public int update(LoginLog loginLog) {
        return loginLogDao.update(loginLog);
    }

    @Override
    public List<LoginLogCountVo> queryEchartsDataByYearMonth(String yearMonth) {
        return loginLogDao.queryEchartsDataByYearMonth(yearMonth);
    }
}
